#pragma once
#include "HPSocket.h"
#include "SocketInterface.h"

class ServerHandler : public CTcpServerListener
{
public:
	ServerHandler();
	~ServerHandler();
	PVOID pDlg;
	EnHandleResult OnAccept(ITcpServer* pSender, CONNID dwConnID, UINT_PTR soClient);
	EnHandleResult OnReceive(ITcpServer* pSender, CONNID dwConnID, const BYTE* pData, int iLength);
	EnHandleResult OnClose(ITcpServer* pSender, CONNID dwConnID, EnSocketOperation enOperation, int iErrorCode);
};

